package io.renren.modules.sys.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.sys.dao.SysCategoriesDao;
import io.renren.modules.sys.entity.SysCategoriesEntity;
import io.renren.modules.sys.service.SysCategoriesService;


@Service("sysCategoriesService")
public class SysCategoriesServiceImpl extends ServiceImpl<SysCategoriesDao, SysCategoriesEntity> implements SysCategoriesService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SysCategoriesEntity> page = this.page(
                new Query<SysCategoriesEntity>().getPage(params),
                new QueryWrapper<SysCategoriesEntity>()
        );

        return new PageUtils(page);
    }

}
